Binary Sequential Counting & Digital State Transition Simulator
| Clock Pulse # | Q3 (MSB) | Q2 | Q1 | Q0 (LSB) | Decimal | Hex | Next State |
|---|
| Feature | Up Counter (This Experiment) | Down Counter |
|---|---|---|
| Counting Direction | Ascending: 00002 → 11112 (0 → 15). | Descending: 11112 → 00002 (15 → 0). |
| Initial Reset State | Clears to minimum state 00002 (0). | Presets to maximum state 11112 (15). |
| Overflow / Rollover | Transitions 11112 → 00002 after 15th pulse. | Transitions 00002 → 11112 after underflow. |
| Toggle Frequency | Q0 = f/2, Q1 = f/4, Q2 = f/8, Q3 = f/16. | Same binary division ratios (f/2, f/4, f/8, f/16). |
| Primary Applications | Digital clocks, event tallying, frequency dividers, timers. | Countdown timers, missile launches, event decrementers. |
A 4-Bit Up Counter is a sequential digital logic circuit built from four flip-flops (FF0 to FF3) that counts sequentially in ascending binary order. On every active clock edge, the stored binary value increases by 1 (+1), progressing from 00002 (0) up to 11112 (15).
The modulus of a counter is the total number of unique states in its counting sequence. With N=4 flip-flops, the total number of states is 2N = 24 = 16. Thus, it is classified as a MOD-16 Counter. After reaching state 15 (11112), the 16th clock pulse resets the counter back to 0 (00002).
Q0 (LSB): The Least Significant Bit (20 = 1) toggles on every single active clock edge (fQ0 = fCLK/2).
Q3 (MSB): The Most Significant Bit (23 = 8) toggles once every 8 clock pulses (fQ3 = fCLK/16).
This positional weighting makes digital counters natural binary frequency dividers.
The state transitions follow standard binary addition arithmetic: